package com.travel.server.manager.dto.response.user;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/20 11:35
 * @Desc:
 */
@Data
public class QueryUserListResponse {

    @JSONField(name = "total_num")
    private Integer totalNum;

    @JSONField(name = "user_list")
    private List<UserItem> userList;

    @Data
    public static class UserItem{
        private Integer id;

        private String account;

        private String mobile;

        private String name;

        @JSONField(name = "department_name")
        private String departmentName;

        @JSONField(name = "department_id")
        private Integer departmentId;

        private Integer state;

        @JSONField(name = "last_login_time", format = "yyyy-MM-dd HH:mm:ss")
        private Date lastLoginTime;

        @JSONField(name = "create_time", format = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        @JSONField(name = "head_url")
        private String headUrl;
    }
}
